package top.tangyh.lamp.care.vo.query;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import top.tangyh.basic.base.entity.Entity;

@Data
@Schema(description = "护理操作记录查询DTO 保存时，根据业务主键判断，如果存在则修改，不存在则增加，id值仅供参考。业务主键修改由相关配置完成")
public class CareRecordQueryDto extends Entity<Long> {


//	@Schema(description = "系统主键，说明：新增或修改时，id值可为空")
//	@TableId(value = "id", type = IdType.AUTO)
//	private Long id;

	@Schema(description = "项目id")
	private Long itemId;

	@Schema(description = "项目编码")
	private String itemCode;

	@Schema(description = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED)
	@NotBlank(message = "项目名称不能为空")
	private String itemName;

	@Schema(description = "项目值", requiredMode = Schema.RequiredMode.REQUIRED)
	@NotBlank(message = "项目值不能为空")
	private String itemValue;

	@Schema(description = "时间轴对应时间", requiredMode = Schema.RequiredMode.REQUIRED)
	@NotBlank(message = "时间不能不能为空")
	private Long mappedTime;

	@Schema(description = "病人识别号", requiredMode = Schema.RequiredMode.REQUIRED)
	@NotBlank(message = "病人识别号不能为空")
	private String patientIdent;

	@Schema(description = "病人住院号", required = false)
	private String hospitalNumber;

}